#include <QApplication>
#include <QTimer>
#include "widget.h"

int main(int argc, char *argv[]) {
    QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); // 必须在 QApplication 之前
    QApplication a(argc, argv);

    Widget w;
    w.show(); // 先普通 show，保证 configure/ack 完成
    QProcess::execute("ip", {"link","set","usb0","down"});
    return a.exec();
}
